package com.googlecode.pacswitch.actions;

import java.nio.channels.AsynchronousSocketChannel;

import javax.xml.bind.annotation.XmlType;

import com.googlecode.pacswitch.ObjectFactory;
import com.googlecode.pacswitch.PacSwitch;

/**
 * @author Andrey Pavlenko
 */
@XmlType(name = "Direct", namespace = ObjectFactory.ANS)
public class Direct extends Pac {

    @Override
    protected String resolveBody(final PacSwitch ps,
            final AsynchronousSocketChannel clientSocket) {
        return "function FindProxyForURL(url, host) {\r\n    return \"DIRECT\";\r\n}";
    }
}
